package com.gyf.services;

import com.gyf.mapper.UserMapper;
import com.gyf.pojo.User;

import java.util.Map;

public class UserBizImpl implements UserBiz {

    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User findUser(Map<String, Object> map) {
        return userMapper.findUser(map) ;
    }

    @Override
    public int add(User user) {
        return userMapper.add(user);
    }
}
